package com.atguigu.spring6.iocxml.lifecycle;

public class User {
    private String name;

    public User() {
        System.out.println("1.User无参构造方法");
    }

    public void setName(String name) {
        this.name = name;
        System.out.println("2.给bean对象设置属性值setter方法");
    }
//    初始化方法
    public void initMethod(){
        System.out.println("4.调用指定方法进行初始化");
    }

    public  void destroyMethod(){
        System.out.println("7.bean对象的销毁，调用指定方法进行销毁");
    }
    public String getName() {
        return name;
    }


}
